import os, sys

def get_real_path(path: str):
    """获取exe解压目录的绝对路径"""
    if not path.startswith('/'):
        path = '/' + path
    p = os.path.realpath(sys.path[0])
    p = p.replace(r'\base_library.zip', '')
    p = p.replace('\\', '/')
    path = p + path
    return path

def get_local_app_data_path():
    return os.getenv('LOCALAPPDATA')